from api import create_simple_app
from api.apis import main_bp
from api.apis.task_api import task_bp
from api.apis.user_api import user_bp
from api.config import BaseConfig

API_PREFIX = '/api/'
app = create_simple_app()

app.register_blueprint(main_bp)
app.register_blueprint(task_bp, url_prefix=API_PREFIX + 'task')
app.register_blueprint(user_bp, url_prefix=API_PREFIX + 'user')

if __name__ == '__main__':
    app.run(
        host='0.0.0.0',
        port=10040,
        debug=False,
    )
